<template>
  <div class="comEdit">
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item>
        <h3 class="editTitle">编辑</h3>
      </el-form-item>

      <el-form-item label="公司名称">
        <el-input v-model="form.cname"></el-input>
      </el-form-item>

      <el-form-item label="负责人">
        <el-input v-model="form.uname"></el-input>
      </el-form-item>

      <el-form-item label="招聘岗位">
        <el-input v-model="form.post"></el-input>
      </el-form-item>

      <el-form-item label="工资">
        <el-input v-model="form.salary"></el-input>
      </el-form-item>

      <el-form-item label="招聘人数">
        <el-input v-model="form.num"></el-input>
      </el-form-item>

      <el-form-item label="工作内容">
        <el-input v-model="form.content"></el-input>
      </el-form-item>

      <el-form-item>
        <el-button type="primary" @click="onSubmit">确认</el-button>
        <el-button @click="unSubmit">返回</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "RecruitEdit",
  data() {
    return {
      form: {
        cname: 'cname',
        uname: 'uname',
        post: 'post',
        salary: 'salary',
        num: 'num',
        content: 'content'
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!');
    },
    unSubmit() {
      console.log('unSbmit!');
    }
  }
}
</script>

<style scoped>
.comEdit {
  border-radius: 15px;
  background-clip: padding-box;
  margin: 0px auto;
/*  width: 500px;*/
  padding: 15px 30px 15px 30px;
  background-color: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 0 25px #cac6c6;
}
.loginTitle {
  margin: 0px auto 40px auto;
  text-align: center;
}
</style>
